package cn.iwit.util;

import java.io.Serializable;

public class JsonResult implements Serializable {

    private int result = 0;//处理成功返回0，其他错误
    private String message = "";//如果message不为空，则页面弹出消息框
    private String code = "";
    private Object data = null;

    public int getResult() {
        return result;
    }

    public String getMessage() {
        return message;
    }

    public String getCode() {
        return code;
    }

    public void setResult(int result) {
        this.result = result;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
